/**
 * @properties={typeid:24,uuid:"060E8873-4E51-4C83-AA29-752C29E35207"}
 */
function cancelar(event) {
	_super.cancelar()
	salir()
}

/**
 * @properties={typeid:24,uuid:"32B6EB50-0C71-43DB-A7E5-41927E7C8619"}
 */
function guardar() {
	if (_super.guardar() == true)
	{
		salir()
	}
}

/**
 * @properties={typeid:24,uuid:"0EC08344-77F6-4C6E-A411-1D45F3D98A4D"}
 */
function salir()
{
	databaseManager.setAutoSave(true)
	var $win = application.getWindow('ALTA_TEMP')
	$win.hide()
	$win.destroy()
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"0195DDC5-FDE3-477E-B5F1-2666BCBDC57A"}
 */
function onShow(firstShow, event) {
	_super.onShow(firstShow,event)
	controller.newRecord()
}
